package com.xxzx.publicprevention.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author liyu
 * @since 2020-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_user")
public class UserDO extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 0=群众，1=巡查人员，2=被拉黑
     */
    private Integer status;

    /**
     * 微信open id
     */
    private String openId;

    /**
     * 微信union id
     */
    private String unionId;

    /**
     * 微信名
     */
    private String wxName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime modifyTime;

    /**
     * 拉黑原因等备注
     */
    private String remarks;

    /**
     * 手机号码
     */
    private String phoneNumber;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 所在地-城区
     */
    private String locationCity;

    /**
     * 所在地-街道
     */
    private String locationStreet;

}
